package com.celesea;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author : hanang128
 * @Description:
 * @Date: Created in 11:59 2018-2-26
 * Modified By
 */
@RestController
public class HelloController {
    @Autowired
    private HelloService helloService;

    @RequestMapping("/hi")
    public String hi(@RequestParam("name") String name){
        return helloService.sayHi(name);
    }
}
